// PlayerMgr.h

#pragma once

#ifndef PLAYERMGR_H_INCLUDED
#define PLAYERMGR_H_INCLUDED

#include "World.h"
#include "Net.h"

class PlayerMgr
{
public:
	static PlayerMgr* GetInstance();

	bool AddPlayer(dword p_Id);
	void DeletePlayer(dword p_Id);
	int CheckStatus(dword p_Id);
	bool FindPlayer(dword p_Id);

	WorldState* m_xWorld;
	Net* m_xNet;
protected:
	PlayerMgr();
	PlayerMgr(const PlayerMgr&);
	PlayerMgr& operator= (const PlayerMgr&);
private:
	static PlayerMgr* m_pInstance;
};

#endif
